﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using qlbansach_thuctapnhom.DAL;
namespace qlbansach_thuctapnhom.BLL
{
   public class Login_bll
    {
        quanlybansachDataContext db = new quanlybansachDataContext();
       public bool kiemtradangnhap(string ten, string mk)
        {
            bool ok = db.user_logindatas.Where(nd => nd.username == ten && nd.passwords == mk).FirstOrDefault() != null ? true : false;
            if (ok)
            {
                return true;
            }
            else return false;
        }

    }
}
